import { createApp } from 'vue';
import App from '@/App.vue';
import { Element, Translator } from '@/vender';
import store from '@/store';
import enLangData from 'element-plus/lib/locale/lang/en';
import zhLangData from 'element-plus/lib/locale/lang/zh-cn';
import ElementLocale from 'element-plus/lib/locale';
import '@/styles/element-variables.scss';

const app = createApp(App);

app.use(store);
app.use(Translator, {
    langData: {
        zh: { ...zhLangData },
        en: { ...enLangData }
    }
});
app.use(Element);
ElementLocale.i18n(Translator.mergeElementUI);

app.mount('#app');
